package com.sgb.jicai.base;

import android.app.Activity;
import android.content.Context;
import com.sgb.jicai.service.CentralizedMiningAPI;
import com.swgk.core.base.api.APIManager;
import com.swgk.core.base.aroute.ARouterStartWebBase;

/**
 * Time:2021/7/2
 * AUTHOR:F_Q
 * Description:
 */
public class JiCaiBaseApi {
    public static final String RESPONSE_OK = "ok";
    static CentralizedMiningAPI tenderPurchaseApi;

    public static CentralizedMiningAPI getApi() {
        if (tenderPurchaseApi == null) {
            tenderPurchaseApi =  APIManager.getInstance().create(CentralizedMiningAPI.class);
        }
        return tenderPurchaseApi;
   //     return  APIManager.getInstance().create(TenderPurchaseApi.class);
    }

    public static void startWeb(Context context, String url) {
        ARouterStartWebBase.start(context,url);
    }
    public static void startWebSiteInfo(String no,  int type) {
        ARouterStartWebBase.startWebSiteInfo(no,type);
    }

    public static void setHomeShareAct() {
        ARouterStartWebBase.startHomeShareAct();
    }

    public static void startWeb(Activity context, String url, int requestCode) {
        ARouterStartWebBase.start(context,url,requestCode);
    }
}
